<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<%@ include file="/WEB-INF/jsp/sys/uploader.jsp"%>
<%@page import="com.centit.util.RequestUtil"%>

<html lang="zh-cmn-Hans">
<head>
<title></title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/modules/util/static/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/modules/util/static/plugin/css/index.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/modules/util/static/ztree/js/jquery.ztree.all.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/modules/util/static/plugin/js/selectTree.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/modules/airplanebaseinfo/airplanebaseinfo/ctrl/airplanebaseinfo.edit.js"></script>
<style type="text/css">
.layui-form-select {
	width: 80%;
	float: left;
}

.layui-input, .layui-select, .layui-textarea {
	border-width: 0px;
}

.stream-main-upload-box {
	border: none;
}

.centit-uploader .uploaded-files li {
	padding: 10px 20px 10px 10px;
}

.uploaded-delete {
	display: none;
}
.stream-main-upload-box {
	/* width: 228px !important; */
}
</style>
</head>
<body>
	<form class="layui-form" action="" style="padding: 10px"
		lay-filter="azdbqryForm" id="viewForm">
		<input type="hidden" name="recId" id="recId" value="${object.recId}">

		<table class="viewTable" id="viewTable" lay-filter="viewTable">
			<tr>
				<th>航空器型号和制造人</th>
				<td><input type="text" name="airModel" id="airModel"
					class="layui-input" lay-verify="required"
					value="${object.airModel}" readonly="readonly"></td>
				<th>航空器出厂序号</th>
				<td><input type="text" name="ccxlh" id="ccxlh"
					class="layui-input" lay-verify="required" value="${object.ccxlh}"
					readonly="readonly"></td>
				<th>电台执照序号</th>
				<td><input type="text" name="dtNo" id="dtNo"
					class="layui-input" value="${object.dtNo}" readonly="readonly">
				</td>
			</tr>
			<tr>
				<th>出厂日期</th>
				<td><input type="text" name="proctionDate" id="proctionDate"
					class="layui-input" lay-verify="required"
					value="<fmt:formatDate value='${object.proctionDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
				<th>飞机性质</th>
				<td><input type="text" name="nature" id="nature"
					class="layui-input" lay-verify="required" value="${object.nature}"
					readonly="readonly">
				</td>
				<th>电台执照颁发日期</th>
				<td><input type="text" name="dtbfDate" id="dtbfDate"
					class="layui-input"
					value="<fmt:formatDate value='${object.dtbfDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
			</tr>
			<tr>
				<th>国籍登记证编号</th>
				<td><input type="text" name="gjNo" id="gjNo"
					class="layui-input" lay-verify="required" value="${object.gjNo}"
					readonly="readonly"></td>
				<th>租赁到期日期</th>
				<td><input type="text" name="endTime" id="endTime"
					class="layui-input"
					value="<fmt:formatDate value='${object.endTime}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
				<th>登记时间</th>
				<td><input type="text" name="djsj" id="djsj"
					class="layui-input" lay-verify="required" value="${object.djsj}"
					disabled="disabled"></td>
			</tr>
			<tr>
				<th>飞机状态</th>
				<td><input type="text" name="airZt" id="airZt"
					class="layui-input" lay-verify="required" value="${object.airZt}"
					readonly="readonly"></td>
				<th>国籍标志和登记标志</th>
				<td><input type="text" name="sign" id="sign"
					class="layui-input" lay-verify="required" value="${object.sign}"
					readonly="readonly"></td>
				<th>调机日期</th>
				<td><input type="text" name="useDate" id="useDate"
					class="layui-input" lay-verify="required"
					value="<fmt:formatDate value='${object.useDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
			</tr>
			<tr>
				<th>注销日期</th>
				<td><input type="text" name="offDate" id="offDate"
					class="layui-input"
					value="<fmt:formatDate value='${object.offDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
				<th>选择呼叫代码</th>
				<td><input type="text" name="hjNo" id="hjNo"
					class="layui-input" lay-verify="required" value="${object.hjNo}"
					readonly="readonly"></td>
				<th>Engine serie</th>
				<td><input type="text" name="engineS" id="engineS"
					class="layui-input" lay-verify="required" value="${object.engineS}"
					readonly="readonly"></td>
			</tr>
			<tr>
				<th>Engine</th>
				<td><input type="text" name="engine" id="engine"
					class="layui-input" lay-verify="required" value="${object.engine}"
					readonly="readonly"></td>
				<th>1st engine SN（出厂序号）</th>
				<td><input type="text" name="oneSn" id="oneSn"
					class="layui-input" lay-verify="required" value="${object.oneSn}"
					readonly="readonly"></td>
				<th>2nd engine SN（出厂序号）</th>
				<td><input type="text" name="twoSn" id="twoSn"
					class="layui-input" lay-verify="required" value="${object.twoSn}"
					readonly="readonly"></td>
			</tr>
			<tr>
				<th>国籍登记证签发日期</th>
				<td><input type="text" name="gjDate" id="gjDate"
					class="layui-input" lay-verify="required"
					value="<fmt:formatDate value='${object.gjDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
				<th>所有人名称</th>
				<td><input type="text" name="haveName" id="haveName"
					class="layui-input" lay-verify="required"
					value="${object.haveName}" readonly="readonly"></td>
				<th>所有人地址</th>
				<td><input type="text" name="haveAddr" id="haveAddr"
					class="layui-input" lay-verify="required"
					value="${object.haveAddr}" readonly="readonly"></td>
			</tr>
			<tr>
				<th>运营人</th>
				<td><input type="text" name="yyName" id="yyName"
					class="layui-input" lay-verify="required" value="${object.yyName}"
					readonly="readonly"></td>
				<th>运营人地址</th>
				<td><input type="text" name="yyAddr" id="yyAddr"
					class="layui-input" lay-verify="required" value="${object.yyAddr}"
					readonly="readonly"></td>
				<th>标准适航证编号</th>
				<td><input type="text" name="shNo" id="shNo"
					class="layui-input" lay-verify="required" value="${object.shNo}"
					readonly="readonly"></td>
			</tr>
			<tr>
				<th>标准适航证签发日期</th>
				<td><input type="text" name="qfDate" id="qfDate"
					class="layui-input" lay-verify="required"
					value="<fmt:formatDate value='${object.qfDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
				<th>航空器地址编码（S模式）HEX</th>
				<td><input type="text" name="addrNoHex" id="addrNoHex"
					class="layui-input" lay-verify="required"
					value="${object.addrNoHex}" readonly="readonly"></td>
				<th>航空器地址编码（S模式）OCT</th>
				<td><input type="text" name="addrNoOct" id="addrNoOct"
					class="layui-input" lay-verify="required"
					value="${object.addrNoOct}" readonly="readonly"></td>
			</tr>
			<tr>
				
				<th>电台执照序号</th>
				<td><input type="text" name="dtNo" id="dtNo"
					class="layui-input" lay-verify="required" value="${object.dtNo}"
					readonly="readonly"></td>
				<th>电台执照有效期限</th>
				<td><input type="text" name="dtyxDate" id="dtyxDate"
					class="layui-input" lay-verify="required"
					value="<fmt:formatDate value='${object.dtyxDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
					<th>电台执照颁发日期</th>
				<td><input type="text" name="dtbfDate" id="dtbfDate"
					class="layui-input" lay-verify="required"
					value="<fmt:formatDate value='${object.dtbfDate}' pattern='yyyy-MM-dd'/>"
					disabled="disabled"></td>
			</tr>
			<tr>
					<th>飞机合同</th>
				<td colspan="5">
					<div class="layui-input-inline tdcontent">
						<input type="hidden" id="ht" name="ht" value="${object.ht}" />
					</div>
				</td>
			</tr>
			<tr>
				<th>飞机批文</th>
	                    <td colspan="5">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="pw" name="pw"  value="${object.pw}" disabled="disabled"/>
	                        </div>
	                    </td>
			</tr>
			<tr>
			<th>电台证</th>
				<td colspan="5">
					<div class="layui-input-inline tdcontent">
						<input type="hidden" id="dtz" name="dtz" value="${object.dtz}" />
					</div>
				</td>
				</tr>
			<tr>
				<th>适航证</th>
				<td colspan="5">
					<div class="layui-input-inline tdcontent">
						<input type="hidden" id="shz" name="shz" value="${object.shz}" />
					</div>
				</td>
				</tr>
			<tr>
				<th>国籍证</th>
				<td colspan="5">
					<div class="layui-input-inline tdcontent">
						<input type="hidden" id="gjz" name="gjz" value="${object.gjz}" />
					</div>
				</td>
				
			</tr>
		</table>
	</form>
	<script>
		var basePath = "${pageContext.request.contextPath}";
	</script>

	<script type="text/javascript">
		window.UploaderPath = '${cp:SYS_VALUE("uploaderpath")}/';
		index = setInterval(setUpload, '1000');
		function setUpload() {
			try {
				if (typeof $('#dtz', null).uploader === "function") {
					clearInterval(index);
					$('#dtz', null).uploader({
						UploaderPath : window.UploaderPath,
						ViewContextPath : window.UploaderPath,
						info : {
							optId : 'applyAdd'
						}
					});
				} else {

				}
				//如果是查看的需要去除附件中的操作按钮
				$(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
				$("#i_select_files_upload_demo_0").find("button").remove();
				$("#i_select_files_upload_demo1_0").find("button").remove();
			} catch (e) {
			}
			try {
				if (typeof $('#shz', null).uploader === "function") {
					clearInterval(index);
					$('#shz', null).uploader({
						UploaderPath : window.UploaderPath,
						ViewContextPath : window.UploaderPath,
						info : {
							optId : 'applyAdd'
						}
					});
				} else {

				}
				//如果是查看的需要去除附件中的操作按钮
				$(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
				$("#i_select_files_upload_demo_0").find("button").remove();
				$("#i_select_files_upload_demo1_0").find("button").remove();
			} catch (e) {
			}
			try {
				if (typeof $('#gjz', null).uploader === "function") {
					clearInterval(index);
					$('#gjz', null).uploader({
						UploaderPath : window.UploaderPath,
						ViewContextPath : window.UploaderPath,
						info : {
							optId : 'applyAdd'
						}
					});
				} else {

				}
				//如果是查看的需要去除附件中的操作按钮
				$(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
				$("#i_select_files_upload_demo_0").find("button").remove();
				$("#i_select_files_upload_demo1_0").find("button").remove();
			} catch (e) {
			}
			try {
				if (typeof $('#ht', null).uploader === "function") {
					clearInterval(index);
					$('#ht', null).uploader({
						UploaderPath : window.UploaderPath,
						ViewContextPath : window.UploaderPath,
						info : {
							optId : 'applyAdd'
						}
					});
				} else {

				}
				//如果是查看的需要去除附件中的操作按钮
				$(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
				$("#i_select_files_upload_demo_0").find("button").remove();
				$("#i_select_files_upload_demo1_0").find("button").remove();
			} catch (e) {
			}
			try {
		    	  if (typeof $('#pw', null).uploader === "function") { 
		              clearInterval(index);
		              $('#pw', null).uploader({
		                  UploaderPath: window.UploaderPath,           
		                  ViewContextPath: window.UploaderPath,
		                  info: {
		                      optId: 'applyAdd'    
		                  }
		              });
		          } else {
		        	  
		          }
		    	//如果是查看的需要去除附件中的操作按钮
		            $(".centit-uploader").find("button").remove();//只读时候去除上传按钮，编辑新增此行代码去掉
		            $("#i_select_files_upload_demo_0").find("button").remove();
		            $("#i_select_files_upload_demo1_0").find("button").remove(); 
		      } catch (e) {
		      }
		}
		$("#export").click(function() {
			$("#viewTable").tableExport({
				type : "excel",
				fileName : "航空器详情"
			});

		})
	</script>
</body>
</html>
